package ai.plantdata.Behavior.mode.NullObjectPattern.test;

import ai.plantdata.Behavior.mode.NullObjectPattern.abstractClasses.AbstractCustomer;
import ai.plantdata.Behavior.mode.NullObjectPattern.factory.CustomerFactory;
/**
 * @Author: WangHui
 * @Date: 2020/12/23 16:46
 * @Description:
 */
public class NUllPatternDemo {
    public static void main(String[] args) {
        AbstractCustomer customer1 = CustomerFactory.getCustomer("Rob");
        AbstractCustomer customer2 = CustomerFactory.getCustomer("Bob");
        AbstractCustomer customer3 = CustomerFactory.getCustomer("julie");
        AbstractCustomer customer4 = CustomerFactory.getCustomer("Laura");


        System.out.println("Customers");
        System.out.println(customer1.getName());
        System.out.println(customer2.getName());
        System.out.println(customer3.getName());
        System.out.println(customer4.getName());
    }
}
